package com.tbit.main.service.impl;

import com.tbit.main.dao.core.DispatchConfigDao;
import com.tbit.main.pojo.DispatchConfig;
import com.tbit.main.service.DispatchConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 调度配置
 *
 * @author LMY
 * @create 2020-10-27 20:44
 */
@Service("diapatchConfigService")
public class DispatchConfigServiceImpl implements DispatchConfigService {
    @Autowired
    private DispatchConfigDao dispatchConfigDao;

    @Override
    public DispatchConfig getByAccountId(Integer accountId) {
        return dispatchConfigDao.getByAccountId(accountId);
    }

    @Override
    public void insert(DispatchConfig diapatchConfig) {
        dispatchConfigDao.insert(diapatchConfig);
    }

    @Override
    public void update(DispatchConfig dispatchConfigContent) {
        dispatchConfigDao.update(dispatchConfigContent);
    }

    @Override
    public List<DispatchConfig> getAll() {
        return dispatchConfigDao.getAll();
    }
}
